package org.jeecg.modules.carinfo.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.carinfo.entity.CarRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 出入场查询
 * @Author: jeecg-boot
 * @Date:   2023-12-04
 * @Version: V1.0
 */
@Mapper
public interface CarRecordMapper extends BaseMapper<CarRecord> {
    @Select("SELECT count(1) as count , DATE_FORMAT(t.create_time,'%Y-%m-%d') as time FROM car_record t GROUP BY DATE_FORMAT(t.create_time,'%Y-%m-%d')")
    public List<Map<String,Object>> getCount();

}
